using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DataAccessLayer;
using EntityLayer;

namespace DataLayer
{
    public class datBots
    {
        public DataTable SelectBots(DbConnector parDbConnector)
        {
            DbParamCollection insDbParamCollection = new DbParamCollection();

            return parDbConnector.ExecuteDataTable("SelectBots", insDbParamCollection);
        }
        public void UpdateBots(entBots parEntBots, DbConnector parDbConnector)
        {
            DbParamCollection insDbParamCollection = new DbParamCollection();
            insDbParamCollection.Add("@pBotName", parEntBots.BotName);
            insDbParamCollection.Add("@pNextLanguage", parEntBots.NextLanguage);
            insDbParamCollection.Add("@pLastChangeDate", parEntBots.LastChangeDate);
            parDbConnector.ExecuteNonQuery("UpdateBots", insDbParamCollection);
        }
    }
}
